home *** CD-ROM | disk | FTP | other *** search
- #######################################
- # SCRIPTS LOADER #
- #######################################
- # (C)2000 Romain Guy #
- # Dawn demonstration #
- #######################################
- # Loads a script from a file and adds #
- # it into the Tools-Dawn menu using a #
- # specified name. Useful to access #
- # given scripts frequently. #
- #######################################
-
- "Script to load:\n(Current dir: "
- "." constructPath concat
- ")" concat input
-
- source ->
- 0 sourceCount ->
-
- source rcl constructPath
- try
- "JEXT.SCRIPT2LOAD" openForInput
-
- while "JEXT.SCRIPT2LOAD" isFileAvailable repeat
- "JEXT.SCRIPT2LOAD" readLine
- sourceCount ++
- wend
-
- 1 sourceCount rcl 1 - i for
- swap lineSeparator concat swap concat
- next
- catch
- "An error occured during loading !" msgBox
- exit
- err
-
- "Name: " input
- source rcl
- createAction
-
- # End of script
-